package com.bs.service.impl;

import com.bs.entity.Student;
import com.bs.mapper.StudentMapper;
import com.bs.service.IStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class StudentServiceimpl implements IStudentService {

        @Autowired
        private StudentMapper mapper;

    @Override
    public List<Student> all(Student student) {
        return mapper.all(student);
    }

    @Override
    public int add(Student student) {
        return mapper.add(student);
    }

    @Override
    public int del(String id) {
        return mapper.del(id);
    }

    @Override
    public Student getByID(String id) {
        return mapper.getByID(id);
    }

    @Override
    public int update(Student student) {
        return mapper.update(student);
    }
}
